
<style>
.affix{top:10px;}
.head-style-list li,.editor-template-list li{cursor: pointer;}
</style>
		<div class="ui-portlet">
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;个人中心</a></li>
			  <li><a href="/signatures/mine">文章签名</a></li>
			  <li class="active">新增|编辑</li>
			</ol> 
		</div>          
       <hr>

{{$this->Form->create('Signature',array('class'=>'form-horizontal','role'=>'form'))}}
		
	<div class="tab-content">
		
			
		<div role="tabpanel" class="tab-pane active" id="chi-info">
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="SignatureName">签名名称</label>
				<div class="col-sm-9 controls">
					{{$this->Form->hidden('id')}}
					{{$this->Form->hidden('status',array('value'=>1))}}
					{{$this->Form->hidden('referer',array('value'=>'/signatures/mine'))}}
					{{$this->Form->input('name',array('class'=>'form-control','div'=>false,'label'=>false))}}
				</div>
			</div>
			<!--
			<div class="form-group">
				<label class="col-sm-2 control-label" for="SignatureStatus">是否有效</label>
				<div class="col-sm-9 controls">
					{{$this->Form->input('status',array('class'=>'form-control','default'=>1,'div'=>false,'label'=>false,))}}
				</div>
			</div>
			 -->
			<div class="form-group">
				<label class="col-sm-2 control-label">
					顶部引导关注<br/>
					<small>前缀签名</small>
				</label>
				<div class="col-sm-9 controls">
					
					<script id="SignaturePrefix" name="data[Signature][prefix]" type="text/plain">{{$this->data['Signature']['prefix']}}</script>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					底部关注二维码<br/>
					<small>后缀签名</small>
				</label>
				<div class="col-sm-9 controls">
					
					<script id="SignatureSuffix" name="data[Signature][suffix]" type="text/plain">{{$this->data['Signature']['suffix']}}</script>
				</div>
			</div>
		</div>
	</div>
	
	
	<div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="提交"></div>
	</div>
{{$this->Form->end()}}

<?php  
echo $this->Html->script('/js/ueditor/ueditor.config.js');
?>
<script src="{{Router::url('/js/ueditor/ueditor.all.min.js')}}"></script>
<?php  
echo $this->Combinator->script(array(
	'ueditor/lang/zh-cn/zh-cn.js',
	'i18n/language-zh-cn.js',
	'jquery/jquery.cookie.js','jquery/jquery.mousewheel.min.js',
	'tinycolor-min.js',
	'135editor.js','jquery/jquery.jgrowl.min.js','metro-ui/slider.js',
	'common.js',
	'front.js',
	'jquery/jquery.mixitup.min.js','jquery/jquery-sortable-min.js',
	'jquery/jquery.lazyload.js'
));
?>

<script>
$(function(){
	UE.getEditor('SignaturePrefix',{initialFrameHeight:150});
	UE.getEditor('SignatureSuffix',{initialFrameHeight:150});
})
</script>
